package com.csun.cmny.provider.model.dto.nuringTour;

import com.csun.cmny.util.PubUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

@Data
public class NursingTourRecordSaveDto {

    //老人id
    @NotNull(message = "{sanitation.oldmanId.null}")
    private Long oldManId;

    //老人名字
    @NotEmpty(message = "{sanitation.oldmanName.null}")
    private String oldManName;


  //巡视时间
    @NotNull(message = "{tour.tourTime.null}")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date tourTime;

    //巡视情况
    @NotEmpty(message = "{tour.conditions.null}")
    private String conditions;

    //图片code
    @NotEmpty(message = "{tour.imgCode.null}")
    private String imgCode;
}
